package com.example.leave.domain.approval.infrastructure.mapper;

import com.example.leave.domain.approval.aggregate.ApprovalRule;
import com.example.leave.domain.approval.repo.po.ApprovalRulePo;
import org.mapstruct.Mapper;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/27 上午10:26
 **/
@Mapper(componentModel = "spring")
public interface ApprovalRuleMapper {
    ApprovalRule toApprovalRule(ApprovalRulePo po);

    ApprovalRulePo toApprovalRulePo(ApprovalRule approvalRule);
}
